<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>生码计划单</title>
		<link href="css/common.css" rel="stylesheet" type="text/css" />
		<link href="css/normolize.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<!--[if IE 9]> <link href="css/ieHack9.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 8]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /><link href="css/ieHack8.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if lte IE 7]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<style>

		</style>
	</head>

	<body>
		<script src="js/tpl/header.js" type="text/javascript" charset="utf-8"></script>
		<div class="page-wrapper productlist minwidth border" id="page-wrapper">
			<div class="line"></div>
			<script src="js/tpl/baocaoMenu.js" type="text/javascript" charset="utf-8"></script>
			<div class="vertival-line"></div>
			<div class="page-content">
				<div class="tablist">
					<ul>
						<li class="tabItem active">
							<a href="productManage.html#productManage">生产计划单</a>
						</li>
					</ul>
				</div>

				<div class="page-container">
					<div class="page-form">
						<div class="form">
							<form class="multiinline-form">
								<section>
									<div>
										<label>计划单编号：</label>
										<input type="text" placeholder="请输入计划单编号" style="width: 160px;" />
									</div>

									<div>
										<label>计划单名称：</label>
										<input type="text" placeholder="请输入计划单名称" style="width: 160px;" />
									</div>

									<div>
										<label>产品名称：</label>
										<input type="text" placeholder="请输入产品名称" style="width: 160px;" />
									</div>
								</section>
								<br />
								<div class="clearfix"></div>
								<section style="margin-top:14px;">
									<div>
										<label style="line-height: 26px;">状态：</label>
										<div class="overlay">
											<!--这个是用来存放选中的select的值的-->
											<input type="hidden" value="" class="form-select-value" />
											<div class="dropdown">
												<button class="dropdown-toggle form-dropdown" type="button">
				                                <span class="value" data-default="全部" >全部</span>
				                                <span class="caret"></span>
				                            </button>
												<ul class="none">
													<li data-value='001'>1</li>
													<li data-value='002'>2</li>
													<li data-value='003'>3</li>
													<li data-value='004'>4</li>
												</ul>
											</div>
										</div>
									</div>

									<div>
										<label>完成时间：</label>
										<input type="text" class="Wdate" onclick="WdatePicker()" />--<input type="text" class="Wdate" onclick="WdatePicker()" />
									</div>
									<input type="button" value="搜索" class="search-input-button" />
									<input type="button" value="重置" onclick="resetForm()" class="search-input-button bgblue" />
								</section>
							</form>
						</div>
					</div>
					<div class="table">
						<div class="tablelist">
							<table>
								<thead>
									<tr>
										<th>计划单信息</th>
										<th>印码需求</th>
										<th>时间/状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="itemContainer">
									<tr>
										<td style="width:328px;">
											<img src="images/product/product.png" class="product" />
											<div class="inline-block vertical-middle text-left" style="margin-left:20px;">
												<p class=" text-ellipsis" style="width:200px;">编号：G20160907142408253</p>
												<p class="tabletop text-ellipsis" style="width:200px;">产品：酱100老酒超级好好喝啊啊</p>
												<p class="tabletop text-ellipsis" style="width:200px;">计划单：喝什么鬼十万码力啊啊啊</p>
											</div>
										</td>
										<td>
											<div class="inline-block vertical-middle text-left">
												<p class="">厂商：丽鹏股份</p>
												<p class="tabletop">类型：瓶码/内码</p>
												<p class="tabletop">需求：10000/<span class="colorblue">2000</span></p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto;">
												<p>状态：<span class="red">待确认</span></p>
												<p class="tabletop">截止：2016-06-12  12:34:20</p>
												<p class="tabletop">完成：2016-06-12  12:34:20</p>
											</div>
										</td>
									 
										<td>
											<div>
												<div class="colorblue hover jiedan" data-id='1'><i class="icon icon_jd"></i> <span>接单</span></div>
												<div class="tabletop hover bh" data-id='1'><i class="icon icon_bh"></i> <span>驳回</span></div>
											</div>

										</td>
									</tr>
									
									<tr>
										<td style="width:328px;">
											<img src="images/product/product.png" class="product" />
											<div class="inline-block vertical-middle text-left" style="margin-left:20px;">
												<p class=" text-ellipsis" style="width:200px;">编号：G20160907142408253</p>
												<p class="tabletop text-ellipsis" style="width:200px;">产品：酱100老酒超级好好喝啊啊</p>
												<p class="tabletop text-ellipsis" style="width:200px;">计划单：喝什么鬼十万码力啊啊啊</p>
											</div>
										</td>
										<td>
											<div class="inline-block vertical-middle text-left">
												<p class="">厂商：丽鹏股份</p>
												<p class="tabletop">类型：瓶码/内码</p>
												<p class="tabletop">需求：10000/<span class="colorblue">2000</span></p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto;">
												<p>状态：<span class="red">待确认</span></p>
												<p class="tabletop red">截止：2016-06-12  12:34:20</p>
											</div>
										</td>
									 
										<td>
											<div>
												<div class="mingxi hover" data-id='2'><i class="icon icon_detail2"></i> <span>明细</span></div>
											</div>

										</td>
									</tr>
									
									<tr>
										<td style="width:328px;">
											<img src="images/product/product.png" class="product" />
											<div class="inline-block vertical-middle text-left" style="margin-left:20px;">
												<p class=" text-ellipsis" style="width:200px;">编号：G20160907142408253</p>
												<p class="tabletop text-ellipsis" style="width:200px;">产品：酱100老酒超级好好喝啊啊</p>
												<p class="tabletop text-ellipsis" style="width:200px;">计划单：喝什么鬼十万码力啊啊啊</p>
											</div>
										</td>
										<td>
											<div class="inline-block vertical-middle text-left">
												<p class="">厂商：丽鹏股份</p>
												<p class="tabletop">类型：瓶码/内码</p>
												<p class="tabletop">需求：10000/<span class="colorblue">2000</span></p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto;">
												<p>状态：<span>已接单</span></p>
												<p class="tabletop">截止：2016-06-12  12:34:20</p>
											</div>
										</td>
										 
										<td>
											<div>
												<div class="tijiao hover"  data-id='3'><i class="icon icon_tijiao"></i> <span>提交完工</span></div>
												<div class="tabletop hover mingxi" data-id='3'><i class="icon icon_detail2"></i> <span>明细</span></div>
												<div class="tabletop hover daoru" data-id='3'><i class="icon icon_daoru"></i> <span>导入</span></div>
											</div>

										</td>
									</tr>
									<tr>
										<td style="width:328px;">
											<img src="images/product/product.png" class="product" />
											<div class="inline-block vertical-middle text-left" style="margin-left:20px;">
												<p class=" text-ellipsis" style="width:200px;">编号：G20160907142408253</p>
												<p class="tabletop text-ellipsis" style="width:200px;">计划单：喝什么鬼十万码力啊啊啊</p>
												<p class="tabletop text-ellipsis" style="width:200px;">产品：酱100老酒超级好好喝啊啊</p>
											</div>
										</td>
										<td>
											<div class="inline-block vertical-middle text-left">
												<p class="">厂商：丽鹏股份</p>
												<p class="tabletop">类型：瓶码/内码</p>
												<p class="tabletop">需求：10000/<span class="colorblue">2000</span></p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto;">
												<p>状态：<span class="">驳回</span></p>
												<p class="tabletop">截止：2016-06-12  12:34:20</p>
											</div>
										</td>
									 
										<td>
											<div>
												<div><span>已驳回</span></div>
											</div>
										</td>
									</tr>
									
									<tr>
										<td style="width:328px;">
											<img src="images/product/product.png" class="product" />
											<div class="inline-block vertical-middle text-left" style="margin-left:20px;">
												<p class=" text-ellipsis" style="width:200px;">编号：G20160907142408253</p>
												<p class="tabletop text-ellipsis" style="width:200px;">产品：酱100老酒超级好好喝啊啊</p>
												<p class="tabletop text-ellipsis" style="width:200px;">计划单：喝什么鬼十万码力啊啊啊</p>
											</div>
										</td>
										<td>
											<div class="inline-block vertical-middle text-left">
												<p class="">厂商：丽鹏股份</p>
												<p class="tabletop">类型：瓶码/内码</p>
												<p class="tabletop">需求：10000/<span class="colorblue">2000</span></p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto;">
												<p>状态：<span class="red">待确认</span></p>
												<p class="tabletop">截止：2016-06-12 12:34:20</p>
											</div>
										
										</td>
									 
										<td>
											<div>
												<div class="jiedan hover" data-id="5"><i class="icon icon_jd"></i> <span class="colorblue" >接单</span></div>
												<div class="tabletop bh hover" data-id="5"><i class="icon icon_bh"></i> <span class="colorblue" >驳回</span></div>
											</div>
										</td>
									</tr>

								</tbody>
							</table>
						</div>

						<div class="pagelist fr">
							<div class=" pagedesc fl">当前<span class="currentPage"></span>/<span class="totalpage"></span>，每页<span class="perpage"></span>条，共<span class="totalnumber"></span>条</div>
							<div class="pagination inline-block fl"></div>
							<div class="inline-block fl">
								到第<input type="text" value="" class="gotopage" />页 <input type="button" value="跳转" class="search-input-button border-radius bgblue gotopage_button"></span>
							</div>

						</div>

					</div>

				</div>

			</div>
		</div>

		<div class="footer">
			<div class="footercontainer">
				<ul>
					<li>
						<a href="#">关于我们</a>
					</li>
					<li>
						<a href="#">服务与支持</a>
					</li>
					<li>
						<a href="#">常见问题</a>
					</li>
					<li>
						<a href="#">人才招聘</a>
					</li>
					<li>
						<a href="#">加盟合作</a>
					</li>
				</ul>

				<div style="margin-top:13px;">版权所有@ 2015 - 2016 深圳在乎传媒科技有限公司 粤ICP备15107022-1号</div>
			</div>

		</div>

		<!--这里是删除产品的弹框（无法删除）-->

	</body>

	<script src="js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/jPages.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/js.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/pageFun.js" type="text/javascript" charset="utf-8"></script>

	<script src="js/wdatePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layFun.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/scroll/jquery.slimscroll.min.js" type="text/javascript" charset="utf-8"></script>

	<script>
//确定提交完工后执行的函数
 function ajaxTijiao(){
 	
 }
		function assignInfo(layero,index){
			var body = layer.getChildFrame('body', index);
			var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
			//body.find('.title').html('<p>需求数量：100000</p><p style="margin-top:20px;">完成数量：80000</p> <p style="margin-top:20px;">是否确认提交完工？</p>');
			//（如果小于需求数量 则用红色显示）
			body.find('.title').html('<p>需求数量：100000</p><p style="margin-top:20px;">完成数量：<span class="red">80000</span></p> <p style="margin-top:20px;">是否确认提交完工？</p>');
			//给父页面传值
			body.find('#subButton').on('click', function() {
                ajaxTijiao();
				layer.close(index);
			});
			body.find("#cancelButton").on('click', function() {
				layer.close(index);
			});
		}
		
		 $(function(){
		 	commonObj.checkinit();
		 	var pageObj = new pageFun();
			var currentpage = 1,
				perPage = 10,
				totalNumber = 50;
				pageObj.pageNoObj = $('#pageNo');
			pageObj.submitFun = function() {
					var currentPage=pageObj.pageNoObj.val(); //这个是当前页的页码
			}
				/*参数每页多少个,当前页,总个数,容器的ID*/
			pageObj.init(perPage, currentpage, totalNumber, 'itemContainer');
		 	$('.mingxi').click(function(){
		 		var id=$(this).attr('data-id');
		 		window.location.href="jiuPlanorderDetail.html?id="+id;
		 	})
		 	
		 	$('.bh').click(function(){
		 		var id=$(this).attr('data-id');
		 		layObj.open('bhReason.html?id='+id,559,329,'修改计划单');
		 	})
		 	
		 	$('.tijiao').click(function(){
		 		var id=$(this).attr('data-id');
		 		layObj.open('confirmDelete.html',281,260,'提交完工',assignInfo);
		 	})
		 	
		 	$('.daoru').click(function(){
		 		var id=$(this).attr('data-id');
		 		layObj.open('daoru.html',619,280,'导入二维码');
		 	})
		 })
	</script>

</html>